package com.ruoyi.tzzl.service.imp;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tzzl.domain.WzPhotoAlbum;
import com.ruoyi.tzzl.mapper.WzPhotoAlbumMapper;
import com.ruoyi.tzzl.service.IWzPhotoAlbumService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 微信用户相册Service业务层处理
 * @author by caoyong
 * @date 2022/11/8
 **/
@Service
public class WzPhotoAlbumServiceImpl extends ServiceImpl<WzPhotoAlbumMapper,WzPhotoAlbum> implements IWzPhotoAlbumService {
    /**
     * 查询微信用户相册
     *
     * @param id
     */
    @Override
    public List<WzPhotoAlbum> getByWid(Long id) {
        LambdaQueryWrapper<WzPhotoAlbum> lqw =new LambdaQueryWrapper<>();
        lqw.eq(WzPhotoAlbum::getWid,id);
        return this.list(lqw);
    }
}
